package com.itheima.user.pojo;

import com.itheima.goods.pojo.Sku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:itheima
 * @Description:ItemsHistory构建
 *****/
@ApiModel(description = "ItemsHistory",value = "ItemsHistory")
@Table(name="items_history")
public class ItemsHistory implements Serializable{

	@ApiModelProperty(value = "",required = false)
	@Id
    @Column(name = "id")
	private String id;//



	@ApiModelProperty(value = "",required = false)
    @Column(name = "sku_id")
	private String skuId;//



	@ApiModelProperty(value = "",required = false)
    @Column(name = "username")
	private String username;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "view_time")
	private Date viewTime;//

    private Sku sku;

	public Sku getSku() {
		return sku;
	}

	public void setSku(Sku sku) {
		this.sku = sku;
	}

	//get方法
	public String getId() {
		return id;
	}

	//set方法
	public void setId(String id) {
		this.id = id;
	}

	//get方法
	public String getSkuId() {
		return skuId;
	}

	//set方法
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	//get方法
	public String getUsername() {
		return username;
	}

	//set方法
	public void setUsername(String username) {
		this.username = username;
	}
	//get方法
	public Date getViewTime() {
		return viewTime;
	}

	//set方法
	public void setViewTime(Date viewTime) {
		this.viewTime = viewTime;
	}


}
